package com.jfzt.service;

import com.jfzt.common.ResultMapping;
import com.jfzt.pojo.QueryParamDto;

import java.util.Map;

/**
 * @author: shunpeng.hu
 * @date: 2024/1/22 12:08
 */
public interface IElasticService {

    ResultMapping queryMatchAll(QueryParamDto queryParamDto);

    ResultMapping queryMatchFeild(QueryParamDto queryParamDto);

    ResultMapping queryMulitMatchByFeild(QueryParamDto queryParamDto);

    String quaryAll();

    void createLoginIndex(String indexName);

    void deleteLoginIndex(String indexName);

    void createLoginDocument(String indexName, Map<String, Object> document);

    String queryLoginIndex(String indexName);

}
